<?php
/*
 * @package Joomla 1.5
 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 *
 * @component Phoca Gallery
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined( '_JEXEC' ) or die( 'Restricted access' );

class PhocaGalleryException
{
	
	public static function renderErrorInfo ($msg, $jText = false){
	
		if ($jText) {
			return '<div class="pg-error-info">'.JText::_($msg).'</div>';
		} else {
			return '<div class="pg-error-info">'.$msg.'</div>';
		}
	}
}
?>